#include<stdio.h>
int main(void)
{
	int i, n;
	printf("Please input a number\n");
	scanf_s("%d", &n);
	i = 0;
	for (; n!=0; scanf_s("%d", &n))
    {
		i += n;
	}
	printf("n is %d", i);
	return 0;


}